.calender-year {
  background-color: #167687;
  border-radius: 50px;
  padding: 3px 6px;
  letter-spacing: 5px;
  color: white;
  font-size: medium;
}

.arabic-month {
  font-size: large !important;
}

.active-hidden {
  display: none;
  position: absolute;
  background: #167687;
  padding: 5px;
  color: white;
  font-size: small;
  width: fit-content;
  text-align: left;
}

.calendar {
  width: 400px;
  font-size: 100%;
  margin: 0 auto;
  -webkit-perspective: 1000px;
  perspective: 1000px;
  cursor: default;
  position: relative;
}

.calendar .header {
  background-color: #E7E7E7 !important;
  border-radius: 10px 0 0;
}

@media (max-width: 767.98px) {
  .calendar {
    width: 100%;
  }
}

.calendar .header {
  height: 100px !important;
  position: relative;
  color: black;
}

.calendar .header .text {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 15px;
  -webkit-transform: rotateX(90deg);
  transform: rotateX(90deg);
  -webkit-transform-origin: bottom;
  -ms-transform-origin: bottom;
  transform-origin: bottom;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  -webkit-transition: .4s ease-in-out 0s;
  -o-transition: .4s ease-in-out 0s;
  transition: .4s ease-in-out 0s;
  opacity: 0;
}

.calendar .header .text>span {
  text-align: center;
  font-size: 20px;
  display: block;
  text-transform: uppercase;
  font-weight: 400;
}

.calendar .header.active .text {
  -webkit-transform: rotateX(0deg);
  transform: rotateX(0deg);
  opacity: 1;
  position: relative;
}

.months {
  width: 100%;
  height: 235px;
  border-radius: 0 0 0 10px;
  position: relative;
}

.months .hr {
  height: 1px;
  margin: 15px 0;
  background: #ccc;
}

.month {
  padding: 15px;
  width: inherit;
  background: #E7E7E7;
  position: absolute;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  -webkit-transition: all .4s ease-in-out 0s;
  -o-transition: all .4s ease-in-out 0s;
  transition: all .4s ease-in-out 0s;
}

.months[data-flow="left"] .month {
  -webkit-transform: rotateY(-180deg);
  transform: rotateY(-180deg);
}

.months[data-flow="right"] .month {
  -webkit-transform: rotateY(180deg);
  transform: rotateY(180deg);
}

.table {
  width: 100%;
  font-size: 10px;
  font-weight: 400;
  display: table;
}

.table .row {
  display: table-row;
}

.table .row.head {
  color: black;
  text-transform: uppercase;
}

.table .row .cell {
  width: 14.28%;
  padding: 3px;
  text-align: center;
  display: table-cell;
}

.table .row .cell.disable {
  color: #ccc;
}

.table .row .cell span {
  display: block;
  height: 28px;
  line-height: 28px;
  -webkit-transition: color, background .4s ease-in-out 0s;
  -o-transition: color, background .4s ease-in-out 0s;
  transition: color, background .4s ease-in-out 0s;
}

.table .row .cell.active span {
  border-bottom: 5px solid #167687;
  position: relative;
}

.months .month[data-active="true"] {
  -webkit-transform: rotateY(0);
  transform: rotateY(0);
}

.header [data-action] {
  color: inherit;
  position: absolute;
  top: 50%;
  margin-top: -20px;
  width: 40px;
  height: 40px;
  z-index: 1;
  opacity: 0;
  -webkit-transition: all .4s ease-in-out 0s;
  -o-transition: all .4s ease-in-out 0s;
  transition: all .4s ease-in-out 0s;
}

.header [data-action]>i {
  width: 20px;
  height: 20px;
  display: block;
  position: absolute;
  left: 50%;
  top: 50%;
  margin-top: -10px;
  margin-left: -10px;
}

.header [data-action]>i:before,
.header [data-action]>i:after {
  top: 50%;
  margin-top: -1px;
  content: '';
  position: absolute;
  height: 2px;
  width: 20px;
  border-top: 2px solid;
  border-radius: 2px;
}

.header [data-action*="prev"] {
  left: 15px;
}

.header [data-action*="prev"]>i:before,
.header [data-action*="prev"]>i:after {
  left: 0;
}

.header [data-action*="prev"]>i:before {
  top: 3px;
  -webkit-transform: rotate(-45deg);
  -ms-transform: rotate(-45deg);
  transform: rotate(-45deg);
}

.header [data-action*="prev"]>i:after {
  top: auto;
  bottom: 3px;
  -webkit-transform: rotate(45deg);
  -ms-transform: rotate(45deg);
  transform: rotate(45deg);
}

.header [data-action*="next"] {
  right: 15px;
}

.header [data-action*="next"]>i:before,
.header [data-action*="next"]>i:after {
  right: 0;
}

.header [data-action*="next"]>i:before {
  top: auto;
  bottom: 3px;
  -webkit-transform: rotate(-45deg);
  -ms-transform: rotate(-45deg);
  transform: rotate(-45deg);
}

.header [data-action*="next"]>i:after {
  top: 3px;
  -webkit-transform: rotate(45deg);
  -ms-transform: rotate(45deg);
  transform: rotate(45deg);
}

.header.active [data-action] {
  opacity: 1;
}